import 'package:json_annotation/json_annotation.dart';

part 'general_type.g.dart';

@JsonSerializable()
class GeneralType {
  @JsonKey(name: "label")
  String? name;

  @JsonKey(name: "value")
  String? id;

  GeneralType(this.name, this.id);

  factory GeneralType.fromJson(Map<String, dynamic> json) => _$GeneralTypeFromJson(json);

  Map<String, dynamic> toJson() => _$GeneralTypeToJson(this);

  GeneralType.empty();
}
